<template>
  <div class="login-top-container">
    <div></div>
    <div>{{ middleText }}</div>
    <div>
      <slot name="right" />
    </div>
  </div>
</template>

<script>
export default {
  props: {
    middleText: {
      default: '',
      type: String
    }
  }
}
</script>

<style lang="scss" scoped>
.login-top-container {
  background-color: white;
  height: 13.889vw;
  display: flex;
  div {
    flex: 1; // 将框分为三份
    // 文字居中
    justify-content: center;
    display: flex;
    align-items: center;
    font-size: 4.444vw;
  }
}
</style>